<?php

namespace App\Transformers;

use League\Fractal\TransformerAbstract;
use App\Models\RatingCategory;

/**
 * Class RatingCategoryTransformer.
 *
 * @package namespace App\Transformers;
 */
class RatingCategoryTransformer extends TransformerAbstract
{
    /**
     * Transform the RatingCategory entity.
     *
     * @param \App\Models\RatingCategory $model
     *
     * @return array
     */
    public function transform(RatingCategory $model)
    {
        return [
            'id'         => (int) $model->id,

            /* place your other model properties here */

            'created_at' => $model->created_at->format('Y-m-d H:i:s'),
            'updated_at' => $model->updated_at->format('Y-m-d H:i:s'),
        ];
    }
}
